//
//  LKAddOrderModel.m
//  YLHelper
//
//  Created by she1323 on 2018/5/30.
//  Copyright © 2018年 she1323. All rights reserved.
//

#import "LKAddOrderModel.h"

@implementation LKAddVoucherModel
- (NSDictionary *)properties_aps

{
    
    NSMutableDictionary *props = [NSMutableDictionary dictionary];
    
    unsigned int outCount, i;
    
    objc_property_t *properties = class_copyPropertyList([self class], &outCount);
    for (i = 0; i < outCount; i++)
        
    {
        
        objc_property_t property = properties[i];
        
        const char* char_f = property_getName(property);
        
        NSString *propertyName = [NSString stringWithUTF8String:char_f];
        
        id propertyValue = [self valueForKey:(NSString *)propertyName];
        
        if (propertyValue) [props setObject:propertyValue forKey:propertyName];
        
    }
    
    free(properties);
    
    return props;
    
}

@end


@implementation LKAddAttachModel


@end


@implementation LKAddOrderModel



//Model 到字典

- (NSDictionary *)properties_aps

{
    
    NSMutableDictionary *props = [NSMutableDictionary dictionary];
    
    unsigned int outCount, i;
    
    objc_property_t *properties = class_copyPropertyList([self class], &outCount);
    for (i = 0; i < outCount; i++)
        
    {
        
        objc_property_t property = properties[i];
        
        const char* char_f = property_getName(property);
        
        NSString *propertyName = [NSString stringWithUTF8String:char_f];
        
        id propertyValue = [self valueForKey:(NSString *)propertyName];
        
        if (propertyValue) [props setObject:propertyValue forKey:propertyName];
        
    }
    
    free(properties);
    
    return props;
    
}
+(NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass{
    return @{@"orderAttachs0":[LKAddAttachModel class],@"orderAttachs1":[LKAddAttachModel class],@"orderAttachs2":[LKAddAttachModel class],@"orderAttachs3":[LKAddAttachModel class]};
}
@end
